package com.kx.center.service;

import java.util.HashMap;
import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.kx.center.entity.Goods;

public interface GoodsService {
	
	public int insertGoods(Goods goods);
	public int updateGoods(Goods goods);

	public List<Goods> findGoods(Integer storeId);
	public List<Goods> findGoodsByStoreIdAndTypeId(Integer storeId, Integer typeId);
	public Goods findGoodsById(Integer id);
	public List<HashMap<String, Object>> findAllGoodsType();
	public String getJsonGoods(Integer storeId,boolean flag) throws JsonProcessingException;

	public void updateGoodsStorage(Integer storeId, Integer goodsId, Integer storage);
	public void updateGoodsRefStorage(Integer storeId, Integer goodsId, Integer storage);
	
	public List<HashMap<String, Object>> findYestodayOrderedQuantityById(Integer storeId);
	public List<HashMap<String, Object>> findYestodaySelledQuantityById(Integer storeId);
}
